package com.heatup.apt.api.service;

import java.util.Map;

import com.heatup.apt.model.api.ApiResultModel;

/**
 * @see 用户虚拟账号(储值卡业务)类接口
 * @author maxxiang
 *
 */
public interface UserAccountService {
	public enum Ret_ChangeType{
		Ret_Success(0,"温馨提示：充值成功"),
		Ret_AlreadyChange(1,"温馨提示：该卡已被兑换了"),
		Ret_NotFound(2,"温馨提示：找不到该券，请查看输入是否有误"),
		Ret_InValid(3,"温馨提示：该券已经失效"),
		Ret_IsMax(4,"温馨提示：该券已被领满了"),
		Ret_BeforeTime(5,"温馨提示：该券的兑换时间还没到"),
		Ret_ExpiredTime(6,"温馨提示：该券的兑换时间已过"),
		Ret_NotMake(7,"温馨提示：无法生成兑换券"),
		Ret_Other(9,"温馨提示：未知错误"),
		Ret_isOneVote(10,"该批次兑换码仅限每人兑换一次");
		private int index;
		private String value;
		 
	    private Ret_ChangeType(int n, String value) {
	        this.index = n;
	        this.value = value;
	    }
	    
		public String getValue() {
			return value;
		}
	    	    
		public int getIndex() {
			return index;
		}
	};
		
	//储值卡 兑换
	public ApiResultModel cashcardChange(Map<String, Object> paramsMap);
	
	/**
	 * 查询用户可以充值的面额折扣
	 * @param userId 用户id
	 * @param cityId 城市id
	 * @return
	 */
	public ApiResultModel getUserRechargeDiscountList(int userId,int cityId);
	
	public ApiResultModel queryCardNoByCardId(Integer CardId);
	
}
